Page({
  data: {
    msg:"一只烧鸡",
    id:110,
    age:19,
    arr:['吃饭','睡觉','写代码']
  },
  onLoad(options) {
    console.log('页面正在加载啊')
  },
  onReady() {
    console.log('页面加载完成')
    //变更状态需要使用setData
    setTimeout(()=>{
      this.setData({
        msg:"两只烤羊"
      })
    },2000)
  },
  onShow() {
    console.log('页面显示了')
  },
  onHide() {
    console.log('页面隐藏了')
  },
  onUnload() {

  },
  onShareAppMessage() {
    return {
      title: '一只云烧',
      // path:""
      imageUrl:"https://tse1-mm.cn.bing.net/th/id/R-C.cd6e682e8366b61c44a93b8e13e70b93?rik=eAIvCsG7XgSuYw&riu=http%3a%2f%2fwww.zdyrs.com%2fuploadfile%2f2019%2f0422%2f20190422054136226.jpg&ehk=GSJVwusY3nYtCakQu0drHFGpvVZUvmPlof8hZJLHN3I%3d&risl=&pid=ImgRaw&r=0"
    };
  },
});